@import (less) "../../common/css/container.less";
@navHeight: 32px;
@tabHeight: 48px;
@navMarginTop: 12px;
@navMarginBottom: 16px;
@mFontsize: 16px;
@smFontsize: 14px;
@searchInputHeight: 32px;
.navBar {
    position: absolute;
    max-height: 0;
    background-color: #333c47;
    width: 110px;
    visibility: hidden;
    transition: max-height .3s linear;
    color: #fff;
}
header {
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    position: absolute;
    height: @navHeight + @navMarginTop + @navMarginBottom;
    width: 100%;
    z-index: 10;

    &:hover, &.noHover {
        background-color:#020c18
    }
    .navContainer {
        .container;
        padding-top: @navMarginTop;
        height: @navHeight;
        .navList {
            height: @navHeight + @navMarginBottom;
            font-size: @mFontsize;
            img {
                height: @navHeight;
                vertical-align: top;
            }
            .navAll {
                display: inline-block;
                vertical-align:top;
                .navOne {
                    height: @navHeight;
                    display: inline-block;
                    padding: 0 25px;
                    padding-bottom: @navMarginBottom;
                    position: relative;
                    &:first-child {
                        padding-left: 50px;
                    }
                    &:hover {
                       .secLevMenu {
                            visibility: visible;
                            max-height: 300px;
                        } 
                    }
                    .navLink {
                        line-height: @navHeight;
                        height: @navHeight;
                        color: inherit;
                        display: block;
                        position: relative;                     
                        &::before {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 100%;
                            width: 0;
                            height: 100%;
                            border-bottom: 2px solid #fff;
                            transition: all .2s ease-in-out 0s; 
                        }
                        &:hover {
                            // border-bottom: 2px solid #fff;
                            text-decoration: none;
                            &::before {
                                width: 100%;
                                left: 0;
                                transition-delay: 0.1s;
                            }
                        }
                    }
                    .secLevMenu {
                        .navBar;
                        top: @navHeight + @navMarginBottom;
                        .secLevMenuOne {
                            height: @tabHeight;
                            padding-left: 10px;
                            position: relative;
                            &:hover {
                                .thirdLevMenu {
                                    visibility: visible;
                                    max-height: 300px;
                                }
                            }
                            .secLevMenuLink {
                                line-height: @tabHeight;
                                color: inherit;
                            }
                            .thirdLevMenu {
                                .navBar;
                                left: 100%;
                                top: 0;
                                .thirdLevMenuOne {
                                    height: @tabHeight;
                                    padding-left: 10px;
                                    .thirdLevMenuLink {
                                        line-height: @tabHeight;
                                        color: inherit; 
                                    }
                                }
                            }
                        }
                    }
                }
                .navOne:hover~.navOne .navLink::before {
                    left: 0;
                }
            }
            .funcModule {
                float: right;
                height: @searchInputHeight;
                margin-top: 8px;
                .search {
                    // width: 222px;
                    display: inline-block;
                    height: @navHeight;
                    position: relative;
                    .searchInput {
                        width: 169px;
                        border: 0;
                        line-height: @searchInputHeight;
                        height: @searchInputHeight;
                        padding: 0 33px 0 20px;
                        // opacity: .8;
                        font-size: @smFontsize;
                        color: #fff;
                        border-radius: 2px;
                        background-color: rgba(255, 255, 255, .1);
                        transition: width .3s linear;
                        &:hover {
                            width: 200px;
                        }
                    }
                    i {
                        position: absolute;
                        top: 0;
                        right: 8px;
                        color: #fff;
                    }
                }
                .toLogin {
                    display: inline-block;
                    font-size: @mFontsize;
                    color: #fff;
                    padding: 0 10px;
                }
            }
        }
    }
}

    
